package graphic.primitives.car;

import graphic.primitives.general.GraphicObject;
import graphic.primitives.general.IGraphicObject;
import java.awt.Color;

public class Chassis extends GraphicObject implements IGraphicObject{

	private int sirka;

	public Chassis(int x, int y, int sirka) {
		super(x, y);
		this.sirka = sirka;
	}
	
	@Override
	public void redraw() {
	mainWindow.line(x, y, x+sirka, y);
	mainWindow.setColor(Color.green);
	mainWindow.line(x, y+1, x+sirka, y+1);
	mainWindow.line(x, y+2, x+sirka, y+2);
	mainWindow.setColor(Color.black);
		
	}
}
